package com.wtwd.campus.method;

import com.wtwd.campus.entity.VerifyResult;
import com.wtwd.campus.service.RedisService;
import io.lettuce.core.sentinel.api.async.RedisSentinelAsyncCommands;

import javax.servlet.http.HttpServletRequest;

/**
 * @Author ldaoliang
 * @Date create in 10:27 2021/7/5
 * @Description
 */
public interface EncryptVerify {

    /**
     * 校验
     * @param sign 签名
     * @param token 加密用的key
     * @param request 请求对象
     * @param redisService redis服务
     * @return
     */
    VerifyResult verify(String sign, String token, HttpServletRequest request, RedisService redisService);

}
